package com.demo.dune.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.demo.dune.base.IPersistObject;
import lombok.Getter;
import lombok.Setter;

/**
 * MemberPO.
 * @author Allen
 * @version 1.0 2022-04-03
 */
@Getter
@Setter
@Entity
@Table(name = "DUNE_MEMBER")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class Member implements IPersistObject {
	
	private static final long serialVersionUID = 7013259269428144917L;

	@Id
	@GeneratedValue(generator = "jpa-uuid")
	@Column(length = 32)
	private String id;
	
    @Column(length = 10, nullable = false)
	private String code;
	
    @Column(length = 20, nullable = false)
	private String name;
	
    @Column(length = 3, nullable = false)
	private String type;
    
    @Column(nullable = false)
    private Long point;
	
}
